<template>
  <div>
    <el-card class="box-card">
    <el-form
      :inline="true"
      :model="dataForm"
      @keyup.enter.native="getExportDispatchList()"
      class="dadeFrom"
    >
    <el-select v-model="dataForm.status" placeholder="推送状态" clearable style="width: 200px">
      <el-option label="未推送" value="0"></el-option>
      <el-option label="已推送" value="1"></el-option>
    </el-select>
    <el-select v-model="dataForm.pattern" placeholder="推送模式" clearable style="width: 200px">
      <el-option
        v-for="option in latnIdList"
        :key="option.latnId"
        :label="option.latnName"
        :value="option.latnId"
      >
      </el-option>
    </el-select>
    <!-- <el-date-picker
      v-model="dataForm.timeVal"
      type="datetime"
      placeholder="选择日期时间">
    </el-date-picker> -->
    <el-button @click="searchData()" type="primary">查询</el-button>
    </el-form>
    </el-card>
    <el-card class="box-card" style="margin-top: 10px;">
      <el-table
        :data="dataList"
        border
        style="width: 100%;margin-top: 20px;"
        @selection-change="handleSelectionChange"
      >
      <el-table-column
        type="selection"
        width="55">
      </el-table-column>
      <el-table-column
          type="index"
          label="序号"
          align="center"
        >
        </el-table-column>
        <el-table-column
          prop="dayId"
          label="推送方式"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="推送模式"
          align="center"
        >
        </el-table-column>
         <el-table-column
          label="推送标题"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="推送活动类型"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="状态"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="推送单位"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="推送日期"
          align="center"
        >
        </el-table-column>
        <el-table-column
          label="Iwork推送人数"
        >
        <!-- <template slot-scope="scope">
         ···
        </template> -->
        </el-table-column>
        <el-table-column
          label="Iwork反馈情况"
        >
        <!-- <template slot-scope="scope">
         ···
        </template> -->
        </el-table-column>
        <el-table-column label="短信情况">
        <!-- <template slot-scope="scope">
         ···
        </template> -->
        </el-table-column>
        <el-table-column
          label="呼通情况"
        >
        <!-- <template slot-scope="scope">
         ···
        </template> -->
        </el-table-column>
        <el-table-column
          label="操作"
          align="center"
        >
        <template slot-scope="scope">
          <el-button type="success" size="small" @click="handleDetail(scope.row.id)">详情</el-button>
        </template>
        </el-table-column>
      </el-table>
      <!-- 分页 -->
      <Pagination
        :total="total"
        :pageNum="pageNum" 
        :pageSize="pageSize" 
        @pageChange="pageChange"
      />
    </el-card>
    <!-- 弹窗, 新增 / 修改 -->
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
        dataList: [{id:1}],
        pageNum: 1,
        pageSize: 10,
        total: 0,
        latnIdList: [],
        dataForm: {
          status: '',
          mode: '',
          pattern: '',
          timeVal: ''
        },

      }
  },
  created() {
  },
  methods: {
    // 多选
    handleSelectionChange (val) {
      console.log(val)
    },
    // 点击搜索
    searchData () {},
    // 获取表格数据
    handleDetail (id) {
      this.$router.push({
        path: '/duDetails',
        query: {
          id
        }
      })
    },
    // 再次提醒
    handleAgain () {},
    // 分页
    pageChange (page) {
      this.pageSize = page._pageSize;
      this.pageNum = page._currentPage;
      this.fetchTableList()
    }
  }
};
</script>
<style scoped>
</style>
